package com.z2.components.orm.separate;

import org.springframework.jdbc.datasource.lookup.AbstractRoutingDataSource;

/**
 * Created by cdyizuoming on 2017/3/16.
 * 数据源动态切换
 */
public class RoutingDataSource extends AbstractRoutingDataSource {

    protected Object determineCurrentLookupKey() {
        return DataSourceContext.getDataSource();
    }
}
